package com.dbConnection;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.sql.SQLException;

public class infoProcessor extends JFrame{
	static theConnection conn;
	private JTextField textField;
	
	public infoProcessor(){
		conn = new theConnection();
	/*	JPanel panel = new JPanel();
		getContentPane().add(panel, BorderLayout.CENTER);
		
		textField = new JTextField();
		panel.add(textField);
		textField.setColumns(10);
		
		JButton btnSubmit = new JButton("Submit");
		btnSubmit.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				String statement = textField.getText();
				try{
					conn.updateDB(statement);
				}catch(SQLException e){}
			}
		});
		panel.add(btnSubmit);
		*/
	}
/*	public static void main (String[] args){
		infoProcessor i = new infoProcessor();
		closeConnection();
		
	}*/
	
	public static void closeConnection(){
		conn.close();
	}
	
	
}
